//
//  BGBaseViewController.swift
//  Baga
//
//  Created by 飞王 on 16/12/22.
//  Copyright © 2016年 飞王. All rights reserved.
//

import UIKit

class BGBaseViewController: UIViewController {
    

    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor.white;
        
        if navigationController != nil {
            
            if (navigationController?.isKind(of: BGNavigationViewController.self))! {
                (navigationController as! BGNavigationViewController).statusBarColor = UIStatusBarStyle.lightContent;
                
                // title的颜色
                let att = [NSFontAttributeName: UIFont(name: "Georgia", size: 19)!,
                    NSForegroundColorAttributeName:UIColor.white] as [String : Any];
                navigationController?.navigationBar.titleTextAttributes = att;
                
            }
        }
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
}
